import type { App } from "vue";
import { createPinia } from "pinia";
import { useUserStore } from "./modules/user.store";

const store = createPinia();

export const setupStore = (app: App) => {
  app.use(store);
  const userStore = useUserStore();
  userStore.init();
};

export { store };
